namespace Digitalmes.Domain.Sys;

/// <summary>
/// 租户管理
/// </summary>
[SugarTable("sys_tenant", "租户管理表")]
public class SysTenant : EntityTenantBase, IDeletedFilter
{
    /// <summary>
    /// 租户名称
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "租户名称", Length = 64)]
    public string? Name { get; set; }

    /// <summary>
    /// 负责人
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "负责人", Length = 64)]
    public string? Person { get; set; }

    /// <summary>
    /// 手机号码
    /// </summary>
    [SugarColumn(ColumnDescription = "手机号码", Length = 16)]
    public string? Phone { get; set; }

    /// <summary>
    /// 默认账号
    /// </summary>
    [Required, NotNull]
    [SugarColumn(ColumnDescription = "默认账号", Length = 64)]
    public string? Account { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    [Required, NotNull]
    [SugarColumn(ColumnDescription = "密码", Length = 128)]
    public string? PassWord { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    [SugarColumn(ColumnDescription = "状态")]
    public bool Status { get; set; } = true;

    /// <summary>
    /// 是否删除
    /// </summary>
    [SugarColumn(ColumnDescription = "是否删除")]
    public bool IsDel { get; set; }
}
